package com.itheima.ip;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class Demo01 {


    public static void main(String[] args) throws UnknownHostException {
        InetAddress ren = InetAddress.getByName("192.168.14.36");
        System.out.println(ren.getHostName());
        System.out.println(ren.getHostAddress());


    }


}
